001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.model;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import java.io.Serializable;
020    
021    import java.util.ArrayList;
022    import java.util.List;
023    
024    /**
025     * This class is used by SOAP remote services.
026     *
027     * @author Brian Wing Shun Chan
028     * @generated
029     */
030    @ProviderType
031    public class ResourceActionSoap implements Serializable {
032            public static ResourceActionSoap toSoapModel(ResourceAction model) {
033                    ResourceActionSoap soapModel = new ResourceActionSoap();
034    
035                    soapModel.setMvccVersion(model.getMvccVersion());
036                    soapModel.setResourceActionId(model.getResourceActionId());
037                    soapModel.setName(model.getName());
038                    soapModel.setActionId(model.getActionId());
039                    soapModel.setBitwiseValue(model.getBitwiseValue());
040    
041                    return soapModel;
042            }
043    
044            public static ResourceActionSoap[] toSoapModels(ResourceAction[] models) {
045                    ResourceActionSoap[] soapModels = new ResourceActionSoap[models.length];
046    
047                    for (int i = 0; i < models.length; i++) {
048                            soapModels[i] = toSoapModel(models[i]);
049                    }
050    
051                    return soapModels;
052            }
053    
054            public static ResourceActionSoap[][] toSoapModels(ResourceAction[][] models) {
055                    ResourceActionSoap[][] soapModels = null;
056    
057                    if (models.length > 0) {
058                            soapModels = new ResourceActionSoap[models.length][models[0].length];
059                    }
060                    else {
061                            soapModels = new ResourceActionSoap[0][0];
062                    }
063    
064                    for (int i = 0; i < models.length; i++) {
065                            soapModels[i] = toSoapModels(models[i]);
066                    }
067    
068                    return soapModels;
069            }
070    
071            public static ResourceActionSoap[] toSoapModels(List<ResourceAction> models) {
072                    List<ResourceActionSoap> soapModels = new ArrayList<ResourceActionSoap>(models.size());
073    
074                    for (ResourceAction model : models) {
075                            soapModels.add(toSoapModel(model));
076                    }
077    
078                    return soapModels.toArray(new ResourceActionSoap[soapModels.size()]);
079            }
080    
081            public ResourceActionSoap() {
082            }
083    
084            public long getPrimaryKey() {
085                    return _resourceActionId;
086            }
087    
088            public void setPrimaryKey(long pk) {
089                    setResourceActionId(pk);
090            }
091    
092            public long getMvccVersion() {
093                    return _mvccVersion;
094            }
095    
096            public void setMvccVersion(long mvccVersion) {
097                    _mvccVersion = mvccVersion;
098            }
099    
100            public long getResourceActionId() {
101                    return _resourceActionId;
102            }
103    
104            public void setResourceActionId(long resourceActionId) {
105                    _resourceActionId = resourceActionId;
106            }
107    
108            public String getName() {
109                    return _name;
110            }
111    
112            public void setName(String name) {
113                    _name = name;
114            }
115    
116            public String getActionId() {
117                    return _actionId;
118            }
119    
120            public void setActionId(String actionId) {
121                    _actionId = actionId;
122            }
123    
124            public long getBitwiseValue() {
125                    return _bitwiseValue;
126            }
127    
128            public void setBitwiseValue(long bitwiseValue) {
129                    _bitwiseValue = bitwiseValue;
130            }
131    
132            private long _mvccVersion;
133            private long _resourceActionId;
134            private String _name;
135            private String _actionId;
136            private long _bitwiseValue;
137    }