Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
SIX OVAL - http://code.google.com/p/six-oval/ Copyright (C) 2010 National Institute of Advanced Industrial Science and Technology (AIST) Registration Number: H22PRO-1124 Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
 
 package jp.go.aist.six.oval.model.windows;
 
This item stores the effective rights of a service that a discretionary access control list (DACL) structure grants to a specified trustee.

Author(s):
Akihito Nakamura, AIST
Version:
$Id: ServiceEffectiveRightsItem.java 3046 2013-02-21 09:33:57Z nakamura5akihito@gmail.com $
See also:
OVAL Language
 
     extends ItemType
 {
 
     //{0..1}
     private EntityItemStringType        service_name;
     //{nillable="false"}
     private EntityItemStringType        trustee_sid;
     private EntityItemBoolType         standard_delete;
     private EntityItemBoolType         standard_read_control;
     private EntityItemBoolType         standard_write_dac;
     private EntityItemBoolType         standard_write_owner;
     private EntityItemBoolType         standard_syncronize;
     private EntityItemBoolType         access_system_security;
     private EntityItemBoolType         generic_read;
     private EntityItemBoolType         generic_write;
     private EntityItemBoolType         generic_execute;
     private EntityItemBoolType         service_query_conf;
     private EntityItemBoolType         service_change_conf;
     private EntityItemBoolType         service_query_stat;
     private EntityItemBoolType         service_enum_dependents;
     private EntityItemBoolType         service_start;
     private EntityItemBoolType         service_stop;
     private EntityItemBoolType         service_pause;
     private EntityItemBoolType         service_interrogate;
     private EntityItemBoolType         service_user_defined;



    
Constructor.
 
     public ServiceEffectiveRightsItem()
     {
         this( 0 );
     }
 
 
     public ServiceEffectiveRightsItem(
                     final int id
                     )
     {
         thisidnull );
     }
 
 
     public ServiceEffectiveRightsItem(
                     final int id,
                     final StatusEnumeration status
                     )
     {
         superidstatus );
 
 //        _oval_platform_type = OvalPlatformType.windows;
 //        _oval_component_type = OvalComponentType.serviceeffectiverights;
          = .;
     }



    
    public void setServiceName(
                    final EntityItemStringType service_name
                    )
    {
        this. = service_name;
    }
    {
        return ;
    }



    
    public void setTrusteeSid(
                    final EntityItemStringType trustee_sid
                    )
    {
        this. = trustee_sid;
    }
    {
        return ;
    }



    
    public void setStandardDelete(
                    final EntityItemBoolType standard_delete
                    )
    {
        this. = standard_delete;
    }
    {
        return ;
    }



    
    public void setStandardReadControl(
                    final EntityItemBoolType standard_read_control
                    )
    {
        this. = standard_read_control;
    }
    {
        return ;
    }



    
    public void setStandardWriteDac(
                    final EntityItemBoolType standard_write_dac
                    )
    {
        this. = standard_write_dac;
    }
    {
        return ;
    }



    
    public void setStandardWriteOwner(
                    final EntityItemBoolType standard_write_owner
                    )
    {
        this. = standard_write_owner;
    }
    {
        return ;
    }



    
    public void setStandardSyncronize(
                    final EntityItemBoolType standard_syncronize
                    )
    {
        this. = standard_syncronize;
    }
    {
        return ;
    }



    
    public void setAccessSystemSecurity(
                    final EntityItemBoolType access_system_security
                    )
    {
        this. = access_system_security;
    }
    {
        return ;
    }



    
    public void setGenericRead(
                    final EntityItemBoolType generic_read
                    )
    {
        this. = generic_read;
    }
    {
        return ;
    }



    
    public void setGenericWrite(
                    final EntityItemBoolType generic_write
                    )
    {
        this. = generic_write;
    }
    {
        return ;
    }



    
    public void setGenericExecute(
                    final EntityItemBoolType generic_execute
                    )
    {
        this. = generic_execute;
    }
    {
        return ;
    }



    
    public void setServiceQueryConf(
                    final EntityItemBoolType service_query_conf
                    )
    {
        this. = service_query_conf;
    }
    {
        return ;
    }



    
    public void setServiceChangeConf(
                    final EntityItemBoolType service_change_conf
                    )
    {
        this. = service_change_conf;
    }
    {
        return ;
    }



    
    public void setServiceQueryStat(
                    final EntityItemBoolType service_query_stat
                    )
    {
        this. = service_query_stat;
    }
    {
        return ;
    }



    
    public void setServiceEnumDependents(
                    final EntityItemBoolType service_enum_dependents
                    )
    {
        this. = service_enum_dependents;
    }
    {
        return ;
    }



    
    public void setServiceStart(
                    final EntityItemBoolType service_start
                    )
    {
        this. = service_start;
    }
    {
        return ;
    }



    
    public void setServiceStop(
                    final EntityItemBoolType service_stop
                    )
    {
        this. = service_stop;
    }
    {
        return ;
    }



    
    public void setServicePause(
                    final EntityItemBoolType service_pause
                    )
    {
        this. = service_pause;
    }
    {
        return ;
    }



    
    public void setServiceInterrogate(
                    final EntityItemBoolType service_interrogate
                    )
    {
        this. = service_interrogate;
    }
    {
        return ;
    }



    
    public void setServiceUserDefined(
                    final EntityItemBoolType service_user_defined
                    )
    {
        this. = service_user_defined;
    }
    {
        return ;
    }
    //**************************************************************
    //  java.lang.Object
    //**************************************************************
    @Override
    public int hashCode()
    {
        return super.hashCode();
    }
    @Override
    public boolean equals(
                    final Object obj
                    )
    {
        if (!(obj instanceof ServiceEffectiveRightsItem)) {
            return false;
        }
        return super.equalsobj );
    }
    @Override
    public String toString()
    {
        return "serviceeffectiverights_item[" + super.toString()
                        + ", key="                    + getServiceName()
                        + ", trustee_sid="             + getTrusteeSid()
                        + ", standard_delete="         + getStandardDelete()
                        + ", standard_read_control="   + getStandardReadControl()
                        + ", standard_write_dac="      + getStandardWriteDac()
                        + ", standard_write_owner="    + getStandardWriteOwner()
                        + ", standard_syncronize="     + getStandardSyncronize()
                        + ", access_system_security="  + getAccessSystemSecurity()
                        + ", generic_read="            + getGenericRead()
                        + ", generic_write="           + getGenericWrite()
                        + ", generic_execute="         + getGenericExecute()
                        + ", service_query_conf="      + getServiceQueryConf()
                        + ", service_change_conf="     + getServiceChangeConf()
                        + ", service_query_stat="      + getServiceQueryStat()
                        + ", service_enum_dependents=" + getServiceEnumDependents()
                        + ", service_start="           + getServiceStart()
                        + ", service_stop="            + getServiceStop()
                        + ", service_pause="           + getServicePause()
                        + ", service_interrogate="     + getServiceInterrogate()
                        + ", service_user_defined="    + getServiceUserDefined()
             + "]";
    }
//ServiceEffectiveRightsItem
New to GrepCode? Check out our FAQ X